Skip to content

ci: update GitHub Actions with uv setup#57

Merged
EYH0602 merged 8 commits into
mainfrom
fix-pipeline
Apr 21, 2025
Merged

ci: update GitHub Actions with uv setup#57
EYH0602 merged 8 commits into
mainfrom
fix-pipeline

Conversation

@EYH0602
Copy link
Copy Markdown
Member

@EYH0602 EYH0602 commented Apr 21, 2025

No description provided.

@EYH0602 EYH0602 requested a review from Copilot April 21, 2025 19:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the runner script and experiment pipeline, including modifications to filtering logic, output file naming, and workflow configurations while removing an obsolete test file.

  • Removed tests/test_rewrite.py, which may affect overall test coverage
  • Updated filter condition in src/hoogle.py to simplify dependency checks
  • Renamed output file and updated associated documentation and workflows
  • Added static analysis workflows for MyPy and Pylint support

Reviewed Changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_rewrite.py Removed the test file; review if removal affects necessary test coverage
src/hoogle.py Simplified dependency filter; ensure it behaves as expected with empty lists
scripts/preprocess_benchmark.py Updated output file name; verify consumers of the file are updated accordingly
pyproject.toml Added pylint dependency and pytest configuration adjustments
README.md Updated commands to reflect changes in script names and output files
.github/workflows/unitttest.yml Modified workflow to use uv sync and run tests via pytest
.github/workflows/static_check.yml Added new workflow for type checking and linting using MyPy and Pylint
Files not reviewed (3)
  • .github/workflows/mypy.yml: Language not supported
  • .github/workflows/pylint.yml: Language not supported
  • .pylintrc: Language not supported
Comments suppressed due to low confidence (3)

tests/test_rewrite.py:1

  • Removing test_rewrite.py may reduce test coverage for rewrite functionality. Consider adding new tests to cover the behavior previously validated by this file.
Entire file removed

scripts/preprocess_benchmark.py:11

  • The output file name has been updated from 'Benchmark-F.json' to 'tfb.json'. Ensure that all documentation and downstream processes referencing this file name are updated accordingly.
def main(input_raw_benchmark_path: str = "benchmark", output_path: str = "tfb.json"):

README.md:24

  • [nitpick] The command has been updated to reflect the new script and output file name. Please verify that the documentation is consistent with the changes in the preprocessing pipeline.
uv run --project . scripts/preprocess_benchmark.py

Comment thread src/hoogle.py Outdated
@EYH0602 EYH0602 requested a review from Copilot April 21, 2025 20:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates various runner scripts and configurations to streamline the experiment pipeline. Key changes include removing the rewrite test file, updating default output filenames and commands in scripts and documentation, and revising workflow configuration to use uv commands instead of older actions setups.

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/test_rewrite.py Removed test file for rewrite functionality; verify intentional removal
src/hoogle.py Updated dependency check from "!= None" to "is not None"
scripts/preprocess_benchmark.py Changed default output filename from "Benchmark-F.json" to "tfb.json"
pyproject.toml Added pylint dependency and pytest configuration changes
README.md Updated script command and instructions to reflect new file names
.github/workflows/unitttest.yml Revised test workflow to install uv and run tests via pytest
.github/workflows/pylint.yml Adjusted pylint workflow to use uv run for linting
.github/workflows/mypy.yml Updated mypy workflow to run using uv
Files not reviewed (1)
  • .pylintrc: Language not supported
Comments suppressed due to low confidence (1)

tests/test_rewrite.py:1

  • The complete removal of tests/test_rewrite.py may reduce coverage of the rewrite functionality; ensure that tests for this functionality are provided elsewhere or are intentionally deprecated.
from dacite import from_dict

@EYH0602 EYH0602 changed the title fix: update runner script and experiment pipeline ci: update GitHub Actions with uv setup Apr 21, 2025
@EYH0602 EYH0602 merged commit 30c5bc6 into main Apr 21, 2025
3 checks passed
@EYH0602 EYH0602 deleted the fix-pipeline branch April 21, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants